import { Service } from 'boot/axios'

// 获取待授权商户列表
export function waitApproveListApi <T = any>(data: any) {
  return Service<T>({
    url: 'merchant/waitApproveList',
    method: 'post',
    data
  })
}


// 授权点击统计
export function approveClickCountApi <T = any>(data: any) {
  return Service<T>({
    url: 'merchant/approveClickCount',
    method: 'post',
    data
  })
}

// 重复授权
export function againMatchMerchantApi <T = any>() {
  return Service<T>({
    url: 'merchant/againMatchMerchant',
    method: 'post',
  })
}

export function handleApiBMatchApi <T = any>(data: any) {
  return Service<T>({
    url: 'merchant/handleApiBMatch',
    method: 'post',
    diyError: true,
    data
  })
}

export function getApiBOrderListApi <T = any>(data: any) {
  return Service<T>({
    url: 'merchant/getApiBOrderList',
    diyError: true,
    method: 'post',
    data
  })
}


export function getApiBOrderItemClickApi <T = any>(data: any) {
  return Service<T>({
    url: 'merchant/getApiBOrderItemClick',
    method: 'post',
    data
  })
}
